using System;
using System.Windows.Forms;

namespace pyystone
{
    class UtilForm
    {
        public static void initParentForm(Form parentForm)
        {
            parentForm.IsMdiContainer = true;
        }

        public static void alterForm(Form form, Form parentForm)
        {

            if (form.Visible)
            {
                form.Focus();
                return;
            }
            else
            {
                form.WindowState = FormWindowState.Maximized;
                form.MdiParent = parentForm;
                form.Show();
            }
        }

        public static void alterForm(Form form)
        {
            form.Show();    
        }
    }
}